package com.bestdreamer.lock;

public class Demo1MyThreadB extends Thread {

    private final Demo1MyService myService;

    public Demo1MyThreadB(Demo1MyService myService){
        super();
        this.myService = myService;
    }

    @Override
    public void run() {
        for(int i = 0; i < Integer.MAX_VALUE; i++){
            myService.get();
        }
    }
}
